package com.hycat.mail.product.client;

import com.hycat.mail.common.to.es.SkuEsModel;
import com.hycat.mail.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "mail-search", path = "/search")
public interface SearchClient {

    @PostMapping("save/product")
    R productSpuUp(@RequestBody List<SkuEsModel> skuEsModels);
}
